<include file="Public:header" />
<script type="text/javascript">
KindEditor.ready(function(K) {
  var editor1 = K.create('textarea[name="text"]', {
	  uploadJson : "{:U('/Common/uploadEditor')}",
    allowFileManager : false,
    width : '700px',
    height : '300px'
  });
});
</script>
    <h3 class="title"><em>编辑文本广告</em><include file="nav" /></h3>
  <div class="formbox">
      <form name="mform" method="post" action="{:U('edit')}">
    <table width="100%" border="0" cellspacing="1" cellpadding="0">
      <tr>
        <th>广告名称：</th>
        <td><input name="name" type="text" class="ipt" id="name" size="50" maxlength="50" value="{$info['name']}" /></td>
      </tr>
            <tr>
        <th>文本广告：</th>
        <td><textarea name="text" cols="55" rows="8" class="ipt" id="text">{$info['text']}</textarea></td>
      </tr>
      <tr>
        <th valign="top">备注：</th>
        <td>
                <textarea name="remark" cols="55" rows="8" class="ipt" id="remark">{$info['remark']}</textarea></td>
      </tr>
      <tr>
        <th>状态：</th>
        <td>
                  <label><input name="status" type="radio" value="1" <eq name="info['status']" value="1">checked="checked"</eq> /> 显示</label>
                  <label><input name="status" type="radio" value="2" <eq name="info['status']" value="2">checked="checked"</eq> /> 不显示</label>
                </td>
      </tr>
      <tr class="btnbox">
              <th>&nbsp;</th>
        <td>
        <input type="hidden" value="3" name="ad_type" />
        <input type="hidden" value="{$info['id']}" name="id" />
          <input type="submit" class="btn" value="保 存">&nbsp;
          <input type="reset" class="btn" value="取 消" onClick="window.location.href='{:U('index')}';">
        </td>
      </tr>
    </table>
        </form>
  </div>
<include file="Public:footer" />